From b30b10f57a08a690304375c56a52db04118a1916 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 16 Nov 2005 11:27:19 +0100 Subject: [PATCH] Replace 0 with NULL when assigning pointer fields/parameters. Signed-off-by: Vincent Hanquez --- linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c | 4 ++-- linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c | 2 +- linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c | 2 +- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c b/linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c index 728c275117..0f516e5373 100644 --- a/linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c +++ b/linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c @@ -752,7 +752,7 @@ void __init init_IRQ(void) irq_bindcount[dynirq_to_irq(i)] = 0; irq_desc[dynirq_to_irq(i)].status = IRQ_DISABLED; - irq_desc[dynirq_to_irq(i)].action = 0; + irq_desc[dynirq_to_irq(i)].action = NULL; irq_desc[dynirq_to_irq(i)].depth = 1; irq_desc[dynirq_to_irq(i)].handler = &dynirq_type; } @@ -770,7 +770,7 @@ void __init init_IRQ(void) #endif irq_desc[pirq_to_irq(i)].status = IRQ_DISABLED; - irq_desc[pirq_to_irq(i)].action = 0; + irq_desc[pirq_to_irq(i)].action = NULL; irq_desc[pirq_to_irq(i)].depth = 1; irq_desc[pirq_to_irq(i)].handler = &pirq_type; } diff --git a/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c b/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c index 1c6de43b45..ffb9cf2083 100644 --- a/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c +++ b/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c @@ -438,7 +438,7 @@ static struct attribute* xen_attrs[] = { &dev_attr_pcrs.attr, &dev_attr_caps.attr, &dev_attr_cancel.attr, - 0, + NULL, }; static struct attribute_group xen_attr_grp = { .attrs = xen_attrs }; diff --git a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c index a179690a0b..34f06a1d86 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c @@ -543,7 +543,7 @@ static int __init blkif_init(void) spin_lock_init(&blkio_schedule_list_lock); INIT_LIST_HEAD(&blkio_schedule_list); - ret = kernel_thread(blkio_schedule, 0, CLONE_FS | CLONE_FILES); + ret = kernel_thread(blkio_schedule, NULL, CLONE_FS | CLONE_FILES); BUG_ON(ret < 0); blkif_xenbus_init(); diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index 230f379cdd..5b20cb8f24 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -884,7 +884,7 @@ void xenbus_probe(void *unused) register_xenbus_watch(&be_watch); /* Notify others that xenstore is up */ - notifier_call_chain(&xenstore_chain, 0, 0); + notifier_call_chain(&xenstore_chain, 0, NULL); } -- 2.30.2